import http from "@/common/api/http";

export function login(data, params) {
  return http.post('/mobileLogin', data)
}

export function logout(data) {
  return http.post('/user/logout', data)
}

export function getUsers(params) {
  return http.get('/companyUser/userList', {
    params
  })
}

export function getUserOpenId(params) {
  return http.get('/user/getuseropenid', {
    params
  })
}

export function sendMessage(data) {
  return http.post('/user/sendmessage', data)
}

export function getUser(params) {
  return http.get('/companyUser/userDetail', {
    params
  })
}

export function putUser(data) {
  return http.post("/editUserInfo", data);
}

export function lockUser(data) {
  return http.post('/companyUser/update', data)
}

export function getUserStatic(params) {
  return http.get('/getDeviceInfo', {
    params
  })
}

export function getCompanyUserList(params) {
  return http.get("/getUserList", {
    params
  });
}

export function getDictDataList() {
  return http.get("/Dictionary/list")
}

export function editUserRole(data) {
  return http.post("/companyUser/userCheck", data)
}
export function checkCode(data) {
  return http.post("/checkCode", data)
}

export function changePassword(data) {
  return http.post("/changePassword", data)
}